package com.filetransfer.domain;

import java.io.Serializable;
import java.util.List;

public class FileTransferMessage implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6395756049311871231L;
	
	/**
	 * 
	 */
	private Messages messageType;
	private FileInfo fileInfo;
	private ChunkData chunkData;
	private boolean error = false;
	private String errorMessage;
	private List<FileInfo> fileList;
	
	
	public String toString(){
		StringBuilder bldr = new StringBuilder();
		
		
		
		return bldr.toString();
	}
	
	/**
	 * 
	 * @param type
	 */
	public FileTransferMessage(Messages type){
		messageType = type;
	}
	
	public List<FileInfo> getFileList() {
		return fileList;
	}
	public void setFileList(List<FileInfo> fileList) {
		this.fileList = fileList;
	}
	public Messages getMessageType() {
		return messageType;
	}
	public void setMessageType(Messages messageType) {
		this.messageType = messageType;
	}
	public FileInfo getFileInfo() {
		return fileInfo;
	}
	public void setFileInfo(FileInfo fileInfo) {
		this.fileInfo = fileInfo;
	}
	public ChunkData getChunkData() {
		return chunkData;
	}
	public void setChunkData(ChunkData chunkData) {
		this.chunkData = chunkData;
	}
	public boolean isError() {
		return error;
	}
	public void setError(boolean error) {
		this.error = error;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
